<?php
    require ("../DAO/ThreadDAO.php");
    $threadDao = new ThreadDAO();
    $forumId = $_REQUEST['id'];

    $threads = $threadDao->getThreads($forumId);

    echo json_encode($threads);
?>
